Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Code reviewIssue: Multiple non-Cartridge chains will overwrite each other in Node.js environmentsIn the This causes a critical bug: if a user configures multiple non-Cartridge chains (e.g., different Alchemy or Infura endpoints), they will all be assigned the same chainId key. When these chains are stored in the Example scenario: const chains = [
{ rpcUrl: "https://alchemy.com/mainnet" },
{ rpcUrl: "https://infura.io/sepolia" },
];In Node.js, both would get chainId Location: controller/packages/controller/src/utils.ts Lines 143 to 153 in 6689201 The comment at line 148 mentions "For now, we'll use a placeholder chainId for non-Cartridge hosts in tests", but this code path is now enabled for production use, not just tests. Suggested fix: For Node.js environments with non-Cartridge hosts, consider one of these approaches:
|
|
Claude finished @tarrencev's task —— View job Analyzing controller PR changes and updating documentationTask: Analyze PR #2361 "fix: support non-Cartridge chainId lookup" and update documentation in docs-repo accordingly. Todo List:
Analysis SummaryAfter examining the codebase and documentation, I can see this PR represents a massive initial codebase commit rather than a specific chainId fix. However, the core functionality involves the
Documentation AssessmentThe existing documentation in
Conclusion: No documentation updates needed The existing chain configuration documentation already adequately covers:
The internal |
No description provided.